import IParamVO from '@/model/vo/param/IParamVO'
import { IconRadio } from '@douyinfe/semi-icons'

export default [
  { title: '参数名称', dataIndex: 'name' },
  { title: '参数值', dataIndex: 'value' },
  { title: '备注', dataIndex: 'remark' },
  {
    title: '状态',
    dataIndex: 'enableFlag',
    render: (text: any, record: IParamVO, index: number) => {
      return (
        <IconRadio
          title={record.enableFlag ? '启用中' : '禁用中'}
          className={record.enableFlag ? 'green' : 'red'}
        />
      )
    },
  },
]
